//6.3 - Passing a Pointer - Dirk Henkemans and Mark Lee //Prima Publishing #include using namespace std; class Point { public: int X,Y; Point() : X(0), Y(0) {} }; void MoveUp(Point* p) { p->Y+=5; } int main(void) { Point point; MoveUp(&point); cout << point.X << point.Y; return 0; }